package com.michael.demo.springcloud.alibaba.oauth2.resource.controller;

import com.michael.demo.springcloud.alibaba.oauth2.resource.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class TestController {
    @GetMapping("/user/{name}")
    public User user(@PathVariable String name){
        return new User(name, 20);
    }
}
